package com.qf.service;

import com.qf.model.StandardReport;
import com.qf.model.StandardSubmit;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/*** @author xl
 * @version V1.0
 * @Project sms_platform
 * @Package com.qf.service
 * @Description: ${TODO}
 *@Date 2022/8/29 15:53
 */
public interface ElasticsearchService {

    //保存standardSubmit对象到Es服务器
    void saveLog(StandardSubmit standardSubmit) throws IOException;

    //更新状态推送报告到Es服务器
    void updateLog(StandardReport report) throws IOException;

    Long searchLogCount(Map parameter) throws IOException;

    List<Map> searchLog(Map parameter) throws IOException;

    Map<String, Long> statSendStatus(Map parameter) throws IOException;
}
